package ThreadPool;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: TODO
 * @date 2022/5/20 17:47
 */
public final class Immutability {



        private final StringBuffer user;
        public Immutability(String user){
            this.user =
                    new StringBuffer(user);
        }
        //返回的StringBuffer并不具备不可变性
        public StringBuffer getUser(){
            return this.user;
        }

        @Override
        public String toString(){
            return "user"+user;
        }


}
